#include<bits/stdc++.h>
using namespace std;
int n;
int r[100050];
int t[100050];
int maxn,minn=1000000;
int ans;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>r[i];
        t[r[i]]++;
        maxn=max(maxn,r[i]);
        minn=min(minn,r[i]);
    }
    int tmp=minn;
    ans=t[minn];
    for(int i=minn+1;i<=maxn;i++){
        if(t[i]!=0){
            if(ans>=t[i]){
                ans=ans-t[i];
            }
            else ans=0;
            ans=ans+t[i];
            tmp=i;
        }
    }
    cout<<ans<<endl;
    return 0;
}
